/*
* @Author: qingsong-Liu
* @Date:   2019-08-31 13:26:09
* @Last Modified by:   qingsong-Liu
* @Last Modified time: 2019-08-31 13:43:37
*/
var _mm = require('util/mm.js');

var _payment={
    // 获取支付信息
    getPaymentInfo:function(orderNumber,resolve,reject){
        _mm.request({
            url     : _mm.getServerUrl('/order/pay.do'),
            data    : {
                orderNo : orderNumber
            },
            //todo 设为POST请求，方便接口测试,发布时要删除
            method    : 'POST',
            success : resolve,
            error   : reject
        });
    },
    // 获取订单状态
    getPaymentStatus:function(orderNumber,resolve,reject){
        _mm.request({
            url     : _mm.getServerUrl('/order/query_order_pay_status.do'),
            data    : {
                orderNo : orderNumber
            },
            //todo 设为POST请求，方便接口测试,发布时要删除
            method    : 'POST',
            success : resolve,
            error   : reject
        });
    }
}
module.exports = _payment;